package com.cppsu.cgx.libraryseatselection.dao;

import com.cppsu.cgx.libraryseatselection.entity.Seat;
import com.cppsu.cgx.libraryseatselection.mapper.SeatDynamicSqlSupport;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.dynamic.sql.insert.render.MultiRowInsertStatementProvider;
import org.mybatis.dynamic.sql.util.SqlProviderAdapter;

/**
 * @Author: guibo
 * @Description:
 * @Date: Created in 9:57 2021/3/12
 * @Modified By:
 */
@Mapper
public interface SeatDao {
    @InsertProvider(type= SqlProviderAdapter.class, method="insertMultiple")
    int insertMultiple(MultiRowInsertStatementProvider<Seat> insertStatement);
}
